<%@page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <jsp:include page="base.jsp"></jsp:include>
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <script src="../js/layui.all.js"></script>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/css/layui.css"  media="all">
  <link rel="stylesheet" type="text/css" href="css/iconfont.css">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
  <script type="text/javascript">
	$(function(){
		var a=$("#update").val();
		a=new Date(a).toLocaleString();
		$("#update").val();
		var b=$("#start").val();
		b=new Date(b).toLocaleString();
		$("#start").val(b);
		var c=$("#expire").val();
		c=new Date(c).toLocaleString();
		$("#expire").val(c);
	});
  </script>
</head>
<body>
<br>
<form class="layui-form"  id="form11">
  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">400号码</label>
      <div class="layui-input-inline">
        <input type="text"  value="${s.callee_number}" name="callee_number"  autocomplete="off" class="layui-input">
      </div>
    </div>
     <div class="layui-inline">
      <label class="layui-form-label">联系人</label>
      <div class="layui-input-inline">
        <input type="text" value="${s.contactor}" name="contactor"  autocomplete="off" class="layui-input">
      </div>
    </div>
  </div>
   <div class="layui-form-item">
	    <label class="layui-form-label">公司名称</label>
	    <div class="layui-input-block">
	      <input type="text" value="${s.company_name}" name="company_name"  autocomplete="off" class="layui-input">
	    </div>
   </div>
  
  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">号&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</label>
      <div class="layui-input-inline">
        <input type="text" value="${s.mobile}" name="mobile"  autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-inline">
      <label class="layui-form-label">邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱</label>
      <div class="layui-input-inline">
        <input type="text" value="${s.mail}" name="mail"  autocomplete="off" class="layui-input">
      </div>
    </div>
  	 <div class="layui-form-item">
    <label class="layui-form-label">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址</label>
    <div class="layui-input-block">
      <input type="text" value="${s.address}" name="address"  autocomplete="off" class="layui-input">
    </div>
  </div>
  </div>
  
  <div class="layui-form-item">
   	  <div class="layui-inline">
      <label class="layui-form-label">创建时间</label>
      <div class="layui-input-inline">
        <input type="text" id="create" disabled="disabled" value="${s.create_time}" name="create_time"  autocomplete="off" class="layui-input">
      </div>
    </div>
     <div class="layui-inline">
      <label class="layui-form-label">更新时间</label>
      <div class="layui-input-inline">
        <input type="text" id="update" disabled="disabled" value="${s.update_time}" disabled="disabled" name="update_time"  autocomplete="off" class="layui-input">
      </div>
     </div>
     <div class="layui-inline">
      <label class="layui-form-label">签约月数</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.contract_month}" name="contract_month"  autocomplete="off" class="layui-input">
      </div>
     </div>
  </div>
  <div class="layui-form-item">
   <div class="layui-inline">
      <label class="layui-form-label">start_date</label>
      <div class="layui-input-inline">
        <input type="text" id="start" disabled="disabled" value="${s.start_date}" name="start_date"  autocomplete="off" class="layui-input">
      </div>
     </div>
  	 <div class="layui-inline">
      <label class="layui-form-label">expire_date</label>
      <div class="layui-input-inline">
        <input type="text" id="expire" disabled="disabled" value="${s.expire_date}" name="expire_date"  autocomplete="off" class="layui-input">
      </div>
     </div>
      <div class="layui-inline">
      <label class="layui-form-label">余&nbsp;&nbsp;&nbsp;&nbsp;额</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.balance}" name="balance"  autocomplete="off" class="layui-input">
      </div>
     </div>
  </div>
  
    <div class="layui-form-item">
      <div class="layui-inline">
      <label class="layui-form-label">月最低消费</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.month_fee}" name="month_fee"  autocomplete="off" class="layui-input">
      </div>
     </div>
  	 <div class="layui-inline">
      <label class="layui-form-label">代理商签约指导价</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.guide_price}" name="guide_price"  autocomplete="off" class="layui-input">
      </div>
     </div>
      <div class="layui-inline">
      <label class="layui-form-label">月基础功能费用</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.month_base}" name="month_base"  autocomplete="off" class="layui-input">
      </div>
     </div>
    </div>
    
	<div class="layui-form-item">
	 <div class="layui-inline">
      <label class="layui-form-label">月赠送通话时长</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.month_gift}" name="month_gift"  autocomplete="off" class="layui-input">
      </div>
     </div>
  	 <div class="layui-inline">
      <label class="layui-form-label">剩余月赠送通话时长</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.month_gift_rest}" name="month_gift_rest"  autocomplete="off" class="layui-input">
      </div>
     </div>
      <div class="layui-inline">
      <label class="layui-form-label">通信费用</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.charge_cost}" name="charge_cost"  autocomplete="off" class="layui-input">
      </div>
     </div>   
  </div>
  
  <div class="layui-form-item">
  <div class="layui-inline">
      <label class="layui-form-label">实名制认证</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.real_name}" name="real_name"  autocomplete="off" class="layui-input">
      </div>
     </div>
  	 <div class="layui-inline">
      <label class="layui-form-label">落&nbsp;&nbsp;&nbsp;&nbsp;地</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.area}" name="area"  autocomplete="off" class="layui-input">
      </div>
     </div>
      <div class="layui-inline">
      <label class="layui-form-label">category</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.category}" name="category"  autocomplete="off" class="layui-input">
      </div>
     </div>  
  </div>
  
	<div class="layui-form-item">
	 <div class="layui-inline">
      <label class="layui-form-label">status</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.status}" name="status"  autocomplete="off" class="layui-input">
      </div>
     </div>
  	 <div class="layui-inline">
      <label class="layui-form-label">agency</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.agency}" name="agency"  autocomplete="off" class="layui-input">
      </div>
     </div>
      <div class="layui-inline">
      <label class="layui-form-label">sale_manager</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.sale_manager}" name="sale_manager"  autocomplete="off" class="layui-input">
      </div>
     </div>    
  </div>
  
  	<div class="layui-form-item">
  	 <div class="layui-inline">
      <label class="layui-form-label">sale_mobile</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.sale_mobile}" name="sale_mobile"  autocomplete="off" class="layui-input">
      </div>
     </div>
  	 <div class="layui-inline">
      <label class="layui-form-label">commission</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.commission}" name="commission"  autocomplete="off" class="layui-input">
      </div>
     </div>
      <div class="layui-inline">
      <label class="layui-form-label">memo</label>
      <div class="layui-input-inline">
        <input type="text" disabled="disabled" value="${s.memo}" name="memo"  autocomplete="off" class="layui-input">
      </div>
     </div>
  </div>
</form>
  <div class="layui-form-item" style="margin-left:500px">
    <div class="layui-input-block">
      <a href="${pageContext.request.contextPath}/companyinfo.jsp"><button class="layui-btn"  id="goback" style="margin-left:-80px">返回</button></a>
      <button class="layui-btn"  id="submit11" style="margin-left:100px">提交</button>
    </div>
  </div>
  <br>
<script type="text/javascript"> 
function countDown(secs,surl){
 if(--secs>0){ 
  setTimeout("countDown("+secs+",'"+surl+"')",1000); 
 }
 else
 {  
  location.href=surl; 
 } 
} 
</script>
<script type="text/javascript">
	$(function(){
		$("#submit11").click(function(){
			$.ajax({
   				url:'${pageContext.request.contextPath}/user/change',
   				type:'get',
   				data:$("#form11").serialize(),
   				dataType:'json',
   				success:function(data){
   					console.info(data.flag);
   					if(data.flag){
   						layer.alert(data.msg);
   	   				}else{
						layer.alert(data.msg);
   	   	   	   		}
   				}
	   	    });
	      countDown(4,'http://192.168.1.107:8080/400ReSet/companyinfo.jsp');
		});
	
  	});

</script>          
<script src="${pageContext.request.contextPath}/js/layui.js" charset="utf-8"></script>
</body>
</html>